import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import 'amfe-flexible'
// 引入公用样式
import '@/assets/css/public.less'
//引入样式清空表
import 'reset-css'

// vantui
import Vant from 'vant'
import 'vant/lib/index.css'
import { Toast } from 'vant'
import aip from '@/api'
import local from '@/utils/local'
import moment from 'moment'
Vue.prototype.moment = moment
Vue.prototype.$local = local
Vue.use(Toast)
Vue.use(Vant)
Vue.use(aip)
//截断两位小数全局函数
Vue.prototype.$cut = (val) => {
  return Math.floor(Number(val) * 100) / 100
}

Vue.config.productionTip = false
import globalMixins from '@/utils/globalMixins'
Vue.mixin(globalMixins)
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app')
